package com.example.demo;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class SpringBoot_Dao {
	public List<Map<String,Object>> testSqlConnect(JdbcTemplate jdbcParam){
		List<Map<String,Object>> list=jdbcParam.queryForList("select * from person limit 10");
		return list;
	}
	public void testEx(String param){
		
		if(param.equals("1")){
			System.out.println("hello every one");
		}
	}
}
